<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
    	<ui:composition template="./templates/framework.xhtml">
			<ui:define name="content">
				<ui:include src="./templates/header.xhtml">
					<ui:param name="text" value="#{i18n['generic.back']}" />
					<ui:param name="link" value="index.xhtml" />
				</ui:include>
				<h:form enctype="multipart/form-data" id="exportForm" styleClass="primary">
					<h:inputHidden id="encryptionPassword" value="#{exportBean.encryptionPassword}" />
					<div>
						<h:outputLabel for="fileFormat" value="#{i18n['export.fileFormat']}" />
						<h:selectOneMenu id="fileFormat" value="#{exportBean.fileFormat}">
							<f:selectItem itemLabel="Comma-Separated Values (.csv)" itemValue="csv" />
							<f:selectItem itemLabel="Excel 97-2003 (.xls)" itemValue="xls" />
							<!-- <f:selectItem itemLabel="KeePass Database v1 (.kdb)" itemValue="kdb" /> -->
						</h:selectOneMenu>
						<span class="error"><h:message for="fileFormat" /></span>
					</div>
					<div class="warn">
						<h:outputText value="#{i18n['export.warning']}" />
					</div>
					<div class="buttons">
						<h:commandButton type="submit" value="#{i18n['export.export']}" action="#{exportBean.process}" />
						<input type="button" value="#{i18n['generic.cancel']}" onclick="location.href='index.xhtml'" />
					</div>
				</h:form>
			</ui:define>
		</ui:composition>
    </h:body>
</html>